import service from '../utils/request';

const getHomeNumApi = async () => {
  try {
    const response = await service.get('/api/home/num');
    return response;
  } catch (error) {
    console.error('Error adding student:', error);
    throw error;
  }
}

const getHomeTextApi = async () => {
  try {
    const response = await service.get('/api/home/text');
    return response;
  } catch (error) {
    console.error('Error adding student:', error);
    throw error;
  }
}

export { getHomeNumApi,getHomeTextApi };